﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GeckoPhotos.Models;

namespace GeckoPhotos.Tests.TestUtil
{
    static class UserUtil
    {
        // Values to test against and predetermine outcomes of calls to mock objects
        private const int _userId = 7;
        private const string _username = "someUser";
        private const string _currentPassword = "someOldPassword";
        private const string _newPassword = "someNewPassword";
        private const string _displayName = "someDisplayName";
        private const string _email = "someEmail@email.com";
        
        private static User _standardUserObject;

        public static User CreateUserObject()
        {
            return new User
            {
                UserID = _userId,
                Username = _username,
                Password = _currentPassword,
                DisplayName = _displayName,
                Email = _email,
            };
        }

        public static User StandardUserObject
        {
            get
            {
                if (_standardUserObject == null)
                {
                    _standardUserObject = CreateUserObject();
                }
                return _standardUserObject;
            }
        }

    }
}
